﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Xamarin.Forms;

namespace Futurism.Universal.Foundation
{
    public class ContentPageRegionAdapter : RegionAdapter
    {
        public override void SetContant(Xamarin.Forms.VisualElement region, Xamarin.Forms.VisualElement content)
        {
            (region as ContentPage).Content = content as View;
        }

        public override Xamarin.Forms.VisualElement GetContent(Xamarin.Forms.VisualElement region)
        {
            return (region as ContentPage).Content;
        }
    }
}
